package com.ruoyi.finance.mapper;

import java.util.List;
import com.ruoyi.finance.domain.TFreightWayBillRel;
import org.apache.ibatis.annotations.Param;

/**
 * 运费关联Mapper接口
 * 
 * @author ruoyi
 * @date 2024-05-16
 */
public interface TFreightWayBillRelMapper 
{
    /**
     * 查询运费关联
     * 
     * @param freightBillId 运费关联主键
     * @return 运费关联
     */
    public TFreightWayBillRel selectTFreightWayBillRelByFreightBillId(Long freightBillId);

    /**
     * 查询运费关联列表
     * 
     * @param tFreightWayBillRel 运费关联
     * @return 运费关联集合
     */
    public List<TFreightWayBillRel> selectTFreightWayBillRelList(TFreightWayBillRel tFreightWayBillRel);

    /**
     * 新增运费关联
     * 
     * @param tFreightWayBillRel 运费关联
     * @return 结果
     */
    public int insertTFreightWayBillRel(TFreightWayBillRel tFreightWayBillRel);

    /**
     * 修改运费关联
     * 
     * @param tFreightWayBillRel 运费关联
     * @return 结果
     */
    public int updateTFreightWayBillRel(TFreightWayBillRel tFreightWayBillRel);

    /**
     * 删除运费关联
     * 
     * @param freightBillId 运费关联主键
     * @return 结果
     */
    public int deleteTFreightWayBillRelByFreightBillId(Long freightBillId);

    /**
     * 批量删除运费关联
     * 
     * @param freightBillIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTFreightWayBillRelByFreightBillIds(Long[] freightBillIds);

    /**
     * 新增运费关联
     *
     * @param freightBillId 账单ID
     * @param wayBillIds 运单ID列表
     * @return 结果
     */
    public int insertTFreightWayBillRelExt(@Param("freightBillId") Long freightBillId, @Param("wayBillIds") List<Long> wayBillIds);
}
